﻿using University.Workshop.Model.CardGame;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace University.Workshop.Tests
{
    
    
    /// <summary>
    ///This is a test class for DeckTest and is intended
    ///to contain all DeckTest Unit Tests
    ///</summary>
    [TestClass()]
    public class DeckTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for Deck Constructor
        ///</summary>
        [TestMethod()]
        public void DeckConstructorTest()
        {
            Deck target = new Deck();            
        }

        /// <summary>
        ///A test for CreateListCards
        ///</summary>
        [TestMethod()]
        [DeploymentItem("University.Workshop.Model.dll")]
        public void CreateListCardsTest()
        {
            Deck_Accessor target = new Deck_Accessor(); // TODO: Initialize to an appropriate value
            target.CreateListCards();            
        }

        /// <summary>
        ///A test for PeekCard
        ///</summary>
        [TestMethod()]
        public void PeekCardTest()
        {
            Deck target = new Deck(); // TODO: Initialize to an appropriate value
            Card expected; // TODO: Initialize to an appropriate value
            Card actual;
            actual = target.PeekCard();
            expected = actual;
            Assert.AreEqual(expected, actual);            
        }

        /// <summary>
        ///A test for PullCard
        ///</summary>
        [TestMethod()]
        public void PullCardTest()
        {
            Deck target = new Deck(); // TODO: Initialize to an appropriate value
            Card expected; // TODO: Initialize to an appropriate value
            Card actual;
            actual = target.PullCard();
            expected = actual;
            Assert.AreEqual(expected, actual);            
        }

        /// <summary>
        ///A test for Shuffle
        ///</summary>
        [TestMethod()]
        public void ShuffleTest()
        {
            Deck target = new Deck(); // TODO: Initialize to an appropriate value
            int count = 0; // TODO: Initialize to an appropriate value
            target.Shuffle(count);            
        }

        /// <summary>
        ///A test for Shuffle
        ///</summary>
        [TestMethod()]
        public void ShuffleTest1()
        {
            Deck target = new Deck(); // TODO: Initialize to an appropriate value
            target.Shuffle();            
        }

        /// <summary>
        ///A test for swapCards
        ///</summary>
        [TestMethod()]
        [DeploymentItem("University.Workshop.Model.dll")]
        public void swapCardsTest()
        {
            Deck_Accessor target = new Deck_Accessor(); // TODO: Initialize to an appropriate value
            int i = 0; // TODO: Initialize to an appropriate value
            int j = 0; // TODO: Initialize to an appropriate value
            target.swapCards(i, j);            
        }
    }
}
